home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / rl / build-bin / dothefunkycdimage < prev    next >
Encoding:
Text File  |  2002-07-11  |  5.1 KB  |  174 lines

  1. #!/bin/sh 
  2. # build the cd images
  3. # $1 = build number [1, 2, 3, etc.]
  4.  
  5. BUILD_NUM_FILE=/opt/redmondlinux/builds/CURRENT_BUILD
  6. BUILD_NUM=`cat $BUILD_NUM_FILE`
  7.  
  8. while [ "$#" -gt 0 ]
  9. do
  10.  
  11.   case "$1" in
  12.  
  13.     --test )
  14.       TEST_ONLY=1
  15.       shift
  16.       ;;
  17.  
  18.     -* )
  19.       echo -e `basename $0` [--test]: need build \#\\a
  20.       exit 1
  21.       ;;
  22.  
  23.     * )
  24.       LANG="$1"
  25.       shift
  26.       ;;
  27.  
  28.   esac
  29.  
  30. done
  31.  
  32. if [ -z "$LANG" ]; then
  33.   echo -e `basename $0` [--test]: need lang \#\\a
  34.   exit 1
  35. fi
  36.  
  37. BUILD_BASE=/opt/redmondlinux/builds/${BUILD_NUM}
  38. cd $BUILD_BASE
  39.  
  40. LANG_TO_PROCESS=${LANG}*
  41. for a in $LANG_TO_PROCESS; do # each language
  42.  
  43.   # build the binary cd
  44.   mkisofs -o /opt/redmondlinux/builds/iso/cd1_${a}_binary.iso \
  45.   -l -R -r -D -L -J -T \
  46.   -x ${BUILD_BASE}/${a}/BUGS \
  47.   -x ${BUILD_BASE}/${a}/CHANGELOG \
  48.   -x ${BUILD_BASE}/${a}/CHANGELOG.short \
  49.   -x ${BUILD_BASE}/${a}/WISHLIST \
  50.   -x ${BUILD_BASE}/${a}/rl/devel \
  51.   -x ${BUILD_BASE}/${a}/rl/education \
  52.   -x ${BUILD_BASE}/${a}/rl/extra/SRPMS \
  53.   -x ${BUILD_BASE}/${a}/rl/games \
  54.   -x ${BUILD_BASE}/${a}/rl/install/SRPMS \
  55.   -x ${BUILD_BASE}/${a}/rl/internal \
  56.   -x ${BUILD_BASE}/${a}/rl/laptop \
  57.   -x ${BUILD_BASE}/${a}/rl/misc \
  58.   -x ${BUILD_BASE}/${a}/rl/office \
  59.   -x ${BUILD_BASE}/${a}/rl/server \
  60.   -x ${BUILD_BASE}/${a}/rl/tools/SRPMS \
  61.   -x ${BUILD_BASE}/${a}/rl/source \
  62.   -b "boot/cdboot.288" \
  63.   -c "boot/catalog" \
  64.   -V "Amethyst $a binary CD build $BUILD_NUM" \
  65.   -P "http://www.lycoris.com/" \
  66.   -p "joseph cheek, joseph@lycoris.com" -A "" \
  67.   "${BUILD_BASE}/${a}"
  68.  
  69. # build the source cd
  70. mkisofs -o /opt/redmondlinux/builds/iso/cd2_${a}_source.iso \
  71.   -l -R -r -D -L -J -T \
  72.   -x ${BUILD_BASE}/${a}/BUGS \
  73.   -x ${BUILD_BASE}/${a}/CHANGELOG \
  74.   -x ${BUILD_BASE}/${a}/CHANGELOG.short \
  75.   -x ${BUILD_BASE}/${a}/WISHLIST \
  76.   -x ${BUILD_BASE}/${a}/autoplay.exe \
  77.   -x ${BUILD_BASE}/${a}/autorun.inf \
  78.   -x ${BUILD_BASE}/${a}/install.bat \
  79.   -x ${BUILD_BASE}/${a}/col \
  80.   -x ${BUILD_BASE}/${a}/floppy \
  81.   -x ${BUILD_BASE}/${a}/rl/bin \
  82.   -x ${BUILD_BASE}/${a}/rl/build-bin \
  83.   -x ${BUILD_BASE}/${a}/rl/data \
  84.   -x ${BUILD_BASE}/${a}/rl/devel \
  85.   -x ${BUILD_BASE}/${a}/rl/education \
  86.   -x ${BUILD_BASE}/${a}/rl/extra/RPMS \
  87.   -x ${BUILD_BASE}/${a}/rl/games \
  88.   -x ${BUILD_BASE}/${a}/rl/install/base \
  89.   -x ${BUILD_BASE}/${a}/rl/install/RPMS \
  90.   -x ${BUILD_BASE}/${a}/rl/internal \
  91.   -x ${BUILD_BASE}/${a}/rl/laptop \
  92.   -x ${BUILD_BASE}/${a}/rl/launch \
  93.   -x ${BUILD_BASE}/${a}/rl/misc \
  94.   -x ${BUILD_BASE}/${a}/rl/office \
  95.   -x ${BUILD_BASE}/${a}/rl/server \
  96.   -x ${BUILD_BASE}/${a}/rl/tools \
  97.   -x ${BUILD_BASE}/${a}/live \
  98.   -x ${BUILD_BASE}/${a}/winsetup \
  99.   -x ${BUILD_BASE}/${a}/boot \
  100.   -V "Amethyst $a source CD build $BUILD_NUM" \
  101.   -P "http://www.lycoris.com/" \
  102.   -p "joseph cheek, joseph@lycoris.com" -A "" \
  103.   "${BUILD_BASE}/$a"
  104.  
  105. # build the devtools cd
  106. mkisofs -o /opt/redmondlinux/builds/iso/cd3_${a}_devtools.iso \
  107.   -l -R -r -D -L -J -T \
  108.   -x ${BUILD_BASE}/${a}/BUGS \
  109.   -x ${BUILD_BASE}/${a}/CHANGELOG \
  110.   -x ${BUILD_BASE}/${a}/CHANGELOG.short \
  111.   -x ${BUILD_BASE}/${a}/WISHLIST \
  112.   -x ${BUILD_BASE}/${a}/autoplay.exe \
  113.   -x ${BUILD_BASE}/${a}/autorun.inf \
  114.   -x ${BUILD_BASE}/${a}/install.bat \
  115.   -x ${BUILD_BASE}/${a}/floppy \
  116.   -x ${BUILD_BASE}/${a}/rl/bin \
  117.   -x ${BUILD_BASE}/${a}/rl/build-bin \
  118.   -x ${BUILD_BASE}/${a}/rl/data \
  119.   -x ${BUILD_BASE}/${a}/rl/education \
  120.   -x ${BUILD_BASE}/${a}/rl/extra \
  121.   -x ${BUILD_BASE}/${a}/rl/games \
  122.   -x ${BUILD_BASE}/${a}/rl/install/RPMS \
  123.   -x ${BUILD_BASE}/${a}/rl/install/SRPMS \
  124.   -x ${BUILD_BASE}/${a}/rl/install/base \
  125.   -x ${BUILD_BASE}/${a}/rl/internal \
  126.   -x ${BUILD_BASE}/${a}/rl/laptop \
  127.   -x ${BUILD_BASE}/${a}/rl/launch \
  128.   -x ${BUILD_BASE}/${a}/rl/misc \
  129.   -x ${BUILD_BASE}/${a}/rl/office \
  130.   -x ${BUILD_BASE}/${a}/rl/server \
  131.   -x ${BUILD_BASE}/${a}/rl/source \
  132.   -x ${BUILD_BASE}/${a}/rl/tools \
  133.   -x ${BUILD_BASE}/${a}/live \
  134.   -x ${BUILD_BASE}/${a}/winsetup \
  135.   -x ${BUILD_BASE}/${a}/boot \
  136.   -V "Amethyst ${a} devtools CD build $BUILD_NUM" \
  137.   -P "http://www.lycoris.com/" \
  138.   -p "joseph cheek, joseph@lycoris.com" -A "" \
  139.   "${BUILD_BASE}/$a"
  140.  
  141. # build the gamepak/laptop/office/server/misc cd
  142. mkisofs -o /opt/redmondlinux/builds/iso/cd4_${a}_gamepak.iso \
  143.   -l -R -r -D -L -J -T \
  144.   -x ${BUILD_BASE}/${a}/BUGS \
  145.   -x ${BUILD_BASE}/${a}/CHANGELOG \
  146.   -x ${BUILD_BASE}/${a}/CHANGELOG.short \
  147.   -x ${BUILD_BASE}/${a}/WISHLIST \
  148.   -x ${BUILD_BASE}/${a}/autoplay.exe \
  149.   -x ${BUILD_BASE}/${a}/autorun.inf \
  150.   -x ${BUILD_BASE}/${a}/install.bat \
  151.   -x ${BUILD_BASE}/${a}/floppy \
  152.   -x ${BUILD_BASE}/${a}/rl/bin \
  153.   -x ${BUILD_BASE}/${a}/rl/build-bin \
  154.   -x ${BUILD_BASE}/${a}/rl/data \
  155.   -x ${BUILD_BASE}/${a}/rl/devel \
  156.   -x ${BUILD_BASE}/${a}/rl/extra \
  157.   -x ${BUILD_BASE}/${a}/rl/install \
  158.   -x ${BUILD_BASE}/${a}/rl/internal \
  159.   -x ${BUILD_BASE}/${a}/rl/launch \
  160.   -x ${BUILD_BASE}/${a}/rl/source \
  161.   -x ${BUILD_BASE}/${a}/rl/tools \
  162.   -x ${BUILD_BASE}/${a}/live \
  163.   -x ${BUILD_BASE}/${a}/winsetup \
  164.   -x ${BUILD_BASE}/${a}/boot \
  165.   -V "Amethyst ${a} gamepak CD build $BUILD_NUM" \
  166.   -P "http://www.lycoris.com/go/gamepak/" \
  167.   -p "joseph cheek, joseph@lycoris.com" -A "" \
  168.   "${BUILD_BASE}/$a"
  169.  
  170. done
  171.  
  172. # show cd directory
  173. /bin/ls -lth /opt/redmondlinux/builds/iso/.
  174.